package net.code4life.guestbook.api;

import java.util.List;

/**
 * 留言本持久化Dao
 * @author huigoo.wang@Gmail.com
 *
 */
public interface GuestBookDao {
	/**
	 * 创建一条新留言
	 * @param book
	 */
	public void create(GuestBook book);
	
	public void appendGuestBook(GuestBook book, int parentGuestBookId);
	public void update(GuestBook book);
	public GuestBook queryById(int id);
	public List<GuestBook> queryByParentId(int parentId);
	public List<GuestBook> list();
}
